<template>
	<view class="content">
		<button @click="godetail">按钮</button>
	</view>
</template>
<script setup lang="ts">
import { getContractDetail } from '@/common/API/contract'
import { onLoad} from "@dcloudio/uni-app"
import {ref} from 'vue'

const id = ref(null)
//获取合同详情
const getDetailInfo = async (id) => {
	let res = await getContractDetail(id)
	console.log(res)
}
onLoad((options)=>{
	id.value = options.id
	getDetailInfo(options.id)
})
const godetail = () => {
	uni.navigateTo({
	    url: '/pages/personal/contract/contractList',
	}) 
}
</script>

<style lang="scss" scoped>
.content {
	
}
</style>
